package core
{
	import flash.events.Event;

	public class DataEvent extends Event
	{
		private var _data:Object;
		
		public function DataEvent(msg:String,data:Object)
		{
			super(msg);
			_data = data;
		}
		
		public override function clone():Event 
		{ 
			return new DataEvent(type,_data); 
		} 
		
		public override function toString():String 
		{ 
			return formatToString("DataEvent", "type", "bubbles", "cancelable", "eventPhase", "data"); 
		}
		
		public function get data():Object
		{
			return _data;
		}
	}
}